package com.neutech.neupha.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neutech.neupha.service.ConstantltemService;
import com.neutech.po.ConstantName;
@RestController
@RequestMapping("/constantItem")
public class ConstantItemController {

@Autowired
private ConstantltemService constantltemService;
@RequestMapping("/getConstantItemByTypeid")
public List<Map<String,Object>> getConstantItemByTpeyid(String typeid){
	System.out.println(typeid);
	List<Map<String,Object>> list = constantltemService.getConstantItemByTypeid(typeid);
	return list;
}
@RequestMapping("/getConstantItemByType")
public List<Map<String,Object>> getConstantItemByType(String typeid){
	System.out.println(typeid);
	List<Map<String,Object>> list = constantltemService.getConstantItemByType(typeid);
	return list;
}
}
